package com.pms.utils;

/**
 *
 *  draw 绘制计数器
 *  start 第一条数据的起始位置，比如0代表第一条数据
 *  length 告诉服务器每页显示的条数
 *  search 全局的搜索条件
 */
public class DataTableRequest {
    private int draw;
    private int start;
    private int length;
    private String search;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("draw : " + draw);
        sb.append("start : " + start);
        sb.append("length : " + length);
        sb.append("search : " + search);
        return sb.toString();
    }

    public DataTableRequest() {
    }

    public DataTableRequest(int draw, int start, int length, String search) {
        this.draw = draw;
        this.start = start;
        this.length = length;
        this.search = search;
    }

    public int getDraw() {
        return draw;
    }

    public void setDraw(int draw) {
        this.draw = draw;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }
}
